#include <stdio.h>
#include "comp.h"
#include <string>
#include <iostream>

using namespace std;

COMP_RECT &COMP_RECT::operator =(const COMP_RECT &in)
{
	width = in.width;
	height = in.height;
	rect = in.rect;
	return *this;
}

int comp(COMP_RECT &rect1, COMP_RECT &rect2)
{
	return rect1.rect.compare(0, rect1.height * rect1.width, rect2.rect, 0, rect2.height  * rect2.width);
}
